import { MenuRouter } from '@/pages/SalaryManage/components/MenuFilterRouter';

/** 薪资报表权限码 */
const SALARY_STATISTICS_AUTH_CODE = 'finance:salary:report:report:report';
/** 个税报表权限码 */
const FUND_STATISTICS_AUTH_CODE = 'finance:salary:report:report:social';
/** 个税报表 */
const PERSONALTAX_STATISTICS_AUTH_CODE = 'finance:salary:report:report:tax';

const STATISTICS_MENU_AUTH_CODE_MAP = {
    CN: [SALARY_STATISTICS_AUTH_CODE, FUND_STATISTICS_AUTH_CODE, PERSONALTAX_STATISTICS_AUTH_CODE],
    SG: [SALARY_STATISTICS_AUTH_CODE]
};

export default MenuRouter('statisticsModel', STATISTICS_MENU_AUTH_CODE_MAP);
